package tf2pickup;

/**
 * Represents the properties of a player that is added to the pickup.
 * @author Philipp Preß
 */
public class PlayerProperties {

    private Tf2Class tf2Class;
    private boolean isAfk;
    private String mapVote;

    /**
     * Creates new properties. The players
     * afk-status will automatically be set to false and its map-vote is empty.
     * @param tf2Class the Tf2Class the player will be playing in the pickup.
     */
    public PlayerProperties(Tf2Class tf2Class) {
        this.tf2Class = tf2Class;
        isAfk = false;
        mapVote = "";
    }

    /**
     * Creates new properties.
     * @param tf2Class the Tf2Class the player will be playing in the pickup.
     * @param isAfk if the player is afk or not
     * @param mapVote the player's mapvote.
     */
    public PlayerProperties(Tf2Class tf2Class, boolean isAfk, String mapVote) {
        this.tf2Class = tf2Class;
        this.isAfk = isAfk;
        this.mapVote = mapVote;
    }

    /**
     * @return the tf2Class
     */
    public Tf2Class getTf2Class() {
        return tf2Class;
    }

    /**
     * @return true if the player is set to afk.
     */
    public boolean IsAfk() {
        return isAfk;
    }

    /**
     * @param sets the afk-status.
     */
    public void setAfk(boolean isAfk) {
        this.isAfk = isAfk;
    }

    /**
     * @return the mapVote
     */
    public String getMapVote() {
        return mapVote;
    }

    /**
     * @param mapVote the mapvote to set
     */
    public void setMapVote(String mapVote) {
        this.mapVote = mapVote;
    }
}
